<!DOCTYPE html>
<html>
<script>
	var spiderFlowUrl = '${url}';
	var  detailId = '${id}';
	var  websiteId = '${websiteId}';
</script>
	<head>
		<meta charset="utf-8" />
		<title>SpiderFlow-Editor</title>
		<link rel="stylesheet" href="${request.contextPath}/js/spiderflow/js/layui/css/layui.css" />
		<link rel="stylesheet" href="${request.contextPath}/css/spiderflow/css/layui-blue.css" />
		<link rel="stylesheet" href="${request.contextPath}/css/spiderflow/css/editor.css" />
		<link rel="stylesheet" href="${request.contextPath}/js/spiderflow/js/codemirror/codemirror.css" />
		<link rel="stylesheet" href="${request.contextPath}/js/spiderflow/js/codemirror/idea.css" />
		<link rel="stylesheet" href="${request.contextPath}/js/spiderflow/js/codemirror/show-hint.css" />
		<link rel="stylesheet" href="${request.contextPath}/js/spiderflow/js/jsontree/jsontree.css" />
		<link href="${request.contextPath}/css/jquery.searchableSelect.css" rel="stylesheet" type="text/css">


        <script type="text/javascript" src="${request.contextPath}/js/login.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/layui/layui.all.js" ></script>
		<script>mxBasePath = 'js/mxgraph';$=layui.$</script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/mxgraph/mxgraph.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/common.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/spider-editor.js" ></script>

		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/canvas-viewer.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/codemirror.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/spiderflow.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/placeholder.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/sql.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/show-hint.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/codemirror/spiderflow-hint.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/jsontree/jsontree.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/editorBid.js" ></script>
		<script type="text/javascript" src="${request.contextPath}/js/spiderflow/js/newEditorBid.js" ></script>
		<script src="${request.contextPath}/js/jquery-2.1.1.js"></script>

		<script src="${request.contextPath}/js/jquery.searchableSelect.js"></script>
	</head>

	<body>
		<div class="main-container">
			<div class="toolbar-container">
				<ul>
					<li class="btn-return" title="返回列表"></li>
					<span>|</span>
					<li class="btn-saveBid" title="保存（Ctrl+S）"></li>
					<li class="btn-test" title="测试（Ctrl+Q）"></li>
					<span>|</span>
					<li class="btn-undo" title="撤销（Ctrl+Z）"></li>
					<li class="btn-redo" title="反撤销（Ctrl+Y）"></li>
					<li class="btn-history" title="历史版本"></li>
					<span>|</span>
					<li class="btn-selectAll" title="全选（Ctrl+A）"></li>
					<li class="btn-cut" title="剪切（Ctrl+X）"></li>
					<li class="btn-copy" title="复制（Ctrl+C）"></li>
					<li class="btn-paste" title="粘贴（Ctrl+V）"></li>
					<li class="btn-delete" title="删除（Delete）"></li>
					<span>|</span>
					<li class="btn-edit-xml" title="XML编辑"></li>
					<li class="btn-console-xml" title="打印XML"></li>
					<span>|</span>
					<li class="btn-debug" title="调试（Ctrl+Q）"></li>
					<li class="btn-resume disabled" title="下一步"></li>
					<li class="btn-stop disabled" title="停止"></li>
					<span>|</span>
					<li class="btn-dock-right" title="Dock to right"></li>
					<li class="btn-dock-bottom" title="Dock to bottom"></li>
				</ul>
			</div>
			<div class="sidebar-container"></div>
			<div class="xml-container"><textarea></textarea></div>
			<div class="editor-container"></div>
			<div class="resize-container"></div>
			<div class="properties-container"></div>
			唯一标识:
			<input id="sole_sign" name="sole_sign" placeholder="请输入唯一标识" type="text" />
			爬虫名称:
			<input id="seed_name" name="seed_name" placeholder="请输入爬虫名称" type="text" />
			任务类型:
			<select id="seed_type">
				<option value="">任务类型</option>
				<option value="1">html</option>
				<option value="2">json</option>
				<option value="3">html>cdata</option>
			</select>
			任务状态:
			<select id="seed_status">
				<option value="">任务状态</option>
				<option value="0">关闭</option>
				<option value="1">正常</option>
			</select>
			cron:
			<input id="cron" name="cron" placeholder="请输入cron" onclick="cron()" type="text" />
			数据类型:
			<select id="data_type_id">
				<option value="">数据类型</option>
			</select>
			优先级:
			<select id="spider_level">
				<option value="">优先级</option>
				<option value="1">1</option>
				<option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
			</select>
		</div>
		<script type="text/html" id="parameter-name-tmpl">
			<input type="text" name="parameter-name" placeholder="请输入参数名" autocomplete="off" class="layui-input array" value="{{=d['parameter-name']}}">
		</script>
		<script type="text/html" id="parameter-description-tmpl">
			<input type="text" name="parameter-description" placeholder="请输入参数描述" autocomplete="off" class="layui-input array" value="{{=d['parameter-description']}}">
		</script>
		<script type="text/html" id="parameter-value-tmpl">
			<div class="layui-input-block array" placeholder="请输入参数值" codemirror="parameter-value" data-value="{{=d['parameter-value']}}"></div>
		</script>
		<script type="text/html" id="parameter-type-tmpl">
			<select name="parameter-form-type" class="array">
				<option value="text" {{d['parameter-form-type'] == 'text' ? 'selected': '' }}">text</option>
				<option value="file" {{d['parameter-form-type'] == 'file' ? 'selected': '' }}>file</option>
			</select>
		</script>
		<script type="text/html" id="parameter-from-name-tmpl">
			<input type="text" name="parameter-form-name" placeholder="请输入参数名" autocomplete="off" class="layui-input array" value="{{=d['parameter-form-name']}}">
		</script>
		<script type="text/html" id="parameter-from-description-tmpl">
			<input type="text" name="parameter-form-description" placeholder="请输入参数描述" autocomplete="off" class="layui-input array" value="{{=d['parameter-form-description']}}">
		</script>
		<script type="text/html" id="parameter-from-value-tmpl">
			<div class="layui-input-block array" placeholder="请输入参数值" codemirror="parameter-form-value" data-value="{{=d['parameter-form-value']}}"></div>
		</script>
		<script type="text/html" id="parameter-from-type-tmpl">
			<select name="parameter-form-type" class="array">
				<option value="text" {{d['parameter-form-type'] == 'text' ? 'selected': '' }}">text</option>
				<option value="file" {{d['parameter-form-type'] == 'file' ? 'selected': '' }}>file</option>
			</select>
		</script>
		<script type="text/html" id="parameter-from-filename-tmpl">
			<div class="layui-input-block array" placeholder="请输入文件名" codemirror="parameter-form-filename" data-value="{{=d['parameter-form-filename']}}"></div>
		</script>

		<script type="text/html" id="cookie-name-tmpl">
			<input type="text" name="cookie-name" placeholder="请输入Cookie名" autocomplete="off" class="layui-input array" value="{{=d['cookie-name']}}">
		</script>
		<script type="text/html" id="cookie-description-tmpl">
			<input type="text" name="cookie-description" placeholder="请输入Cookie描述" autocomplete="off" class="layui-input array" value="{{=d['cookie-description']}}">
		</script>
		<script type="text/html" id="cookie-value-tmpl">
			<div class="layui-input-block array" placeholder="请输入Cookie值" codemirror="cookie-value" data-value="{{=d['cookie-value']}}"></div>
		</script>

		<script type="text/html" id="header-name-tmpl">
			<input type="text" name="header-name" placeholder="请输入Header名" autocomplete="off" class="layui-input array" value="{{=d['header-name']}}">
		</script>
		<script type="text/html" id="header-description-tmpl">
			<input type="text" name="header-description" placeholder="请输入Header描述" autocomplete="off" class="layui-input array" value="{{=d['header-description']}}">
		</script>
		<script type="text/html" id="header-value-tmpl">
			<div class="layui-input-block array" placeholder="请输入Header值" codemirror="header-value" data-value="{{=d['header-value']}}"></div>
		</script>

		<script type="text/html" id="variable-name-tmpl">
			<input type="text" name="variable-name" placeholder="请输入变量名" autocomplete="off" class="layui-input array" value="{{=d['variable-name']}}">
		</script>
		<script type="text/html" id="variable-description-tmpl">
			<input type="text" name="variable-description" placeholder="请输入变量描述" autocomplete="off" class="layui-input array" value="{{=d['variable-description']}}">
		</script>
		<script type="text/html" id="variable-value-tmpl">
			<div class="layui-input-block array" placeholder="请输入变量值" codemirror="variable-value" data-value="{{=d['variable-value']}}"></div>
		</script>

		<script type="text/html" id="output-name-tmpl">
			<input type="text" name="output-name" placeholder="输出项" autocomplete="off" class="layui-input array" value="{{=d['output-name']}}">
		</script>
		<script type="text/html" id="output-value-tmpl">
			<div class="layui-input-block array" codemirror="output-value" placeholder="输出值" data-value="{{=d['output-value']}}"></div>
		</script>

		<script type="text/html" id="history-version-tmpl">
			<ul class="history-version">
				{{# layui.each(d,function(index,item){ }}
					<li data-timestamp="{{item.timestamp}}">{{item.time}}</li>
				{{# });}}
			</ul>
		</script>

		<script type="text/html" id="common-operation">
			<a class="layui-btn layui-btn-sm table-row-up">上移</a>
			<a class="layui-btn layui-btn-sm table-row-down">下移</a>
			<a class="layui-btn layui-btn-sm" lay-event="del">删除</a>
		</script>
	</body>
</html>
